package com.woniuxy.enjoylife.service;

import com.woniuxy.enjoylife.entity.Server_order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.enjoylife.entity.dto.ReturnServerOrderDto;
import com.woniuxy.enjoylife.entity.dto.SelectServerOrderDto;
import com.woniuxy.enjoylife.entity.dto.ServerAndOrderDto;
import com.woniuxy.enjoylife.utils.PageResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-19
 */
public interface Server_orderService extends IService<Server_order> {

    boolean insertServerOrder(Server_order order,int uid);


    PageResult<Server_order> selectServerOrder(SelectServerOrderDto dto);


    boolean updateServerOrder(Server_order serverOrder);

    boolean deleteServerOrder(Server_order serverOrder);

    PageResult<ReturnServerOrderDto> selectServerOrderDto(SelectServerOrderDto dto);

//    用户=============================================================================


//查询商家对应的订单
    public List findServerAndOrder(Integer uid);

    //订单和服务dto
    public ServerAndOrderDto serverAndOrderDtoService(String serial);

    //**************************用户服务订单

    //用户取消订单
    public boolean cancleOrder(int id);

    //用户删除订单
    public boolean deleteOrder(int id);
}